// 创建基础组件
const Components = {};
const UI = import.meta.glob("../compontent/**/index.vue", { eager: true });
for (const key in UI) {
    const element = UI[key];
    const _key = key
        .replace(/\/index\.vue/g, "")
        .replace(/\.\.\/compontent\//g, "")
        .replace(/\.\//g, "");
    Components[_key] = element.default;
}
const smallUI = import.meta.glob("../compontent/*.vue", { eager: true });
for (const key in smallUI) {
    const element = smallUI[key];
    const _key = key
        .replace(/\.vue/g, "")
        .replace(/\.\.\/compontent\//g, "")
        .replace(/\.\//g, "");
    Components[_key] = element.default;
}

export default {
    install: function (app) {
        for (const key in Components) {
            const element = Components[key];
            app.component(key, element);
        }
    },
};
